package com.student.mapper;

import com.student.model.Classes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ClassesMapper {
    //获取所有班级信息
    List<Classes> selectAllClasses();
    //删除班级信息
    public int deleteClassByld(@Param("classId")Integer pk_classId);
    //添加班级信息
    public int insertClass(Classes cls);
    //模糊查询班级信息
    List<Classes> selectClassesByName(String name);
    //通过班级ID查询学生
    List<Classes> getClassesIncludeStudentInfoById(Integer classId);
}
